package com.cangxuan.manage.dao;

import com.cangxuan.manage.entity.UserGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IUserGoodsDao {

    @Select("select count(0) from user_goods where goods_id=#{goodsId}")
    int selectCount(@Param("goodsId") int goodsId);
    @Select("select * from user_goods where user_id=#{userId}")
    List<UserGoods> selectByUserID(@Param("userId") int userId);
}
